package com.tn.controller.statistics;

import com.tn.controller.alarm.common.model.CommonVO;
import com.tn.controller.alarm.common.model.TextAndValueVO;
import com.tn.controller.alarm.common.model.statistics.vo.TruckCountVO;
import com.tn.controller.alarm.common.model.statistics.vo.VehicleCountVO;
import com.tn.controller.alarm.common.model.statistics.vo.WarnCountVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName StatisticsController
 * @Description 统计页面接口
 * @Author Yezhongzhu
 * @Date 2021/11/19 10:56
 * @Version v1.0
 **/
@RestController
@RequestMapping("/statistics/")
public class StatisticsController {
    /**
     * 货车数量统计
     * @return
     */
    @RequestMapping("truckStatistics")
    public CommonVO<TruckCountVO> truckStatistics() {
        return null;
    }
    /**
     * 装载车数量统计
     * @return
     */
    @RequestMapping("vehicleStatistics")
    public CommonVO<VehicleCountVO> vehicleStatistics() {
        return null;
    }
    /**
     * 告警统计
     * @return
     */
    @RequestMapping("warningStatistics")
    public CommonVO<WarnCountVO> warningStatistics() {
        return null;
    }
    /**
     * 货车平均作业时间 曲线
     * @Param type: DEFAULT(默认) YOY(同比) QOQ(环比)
     * @return
     */
    @RequestMapping("truckWorkTimeAvgStatisticsCurve")
    public CommonVO<List<TextAndValueVO<Integer,Integer>>> truckWorkTimeAvgStatisticsCurve(String type) {
        return null;
    }
    /**
     * 货车平均作业时间 柱状图
     * @return
     */
    @RequestMapping("truckWorkTimeAvgStatisticsHistogram")
    public CommonVO<List<TextAndValueVO<String,Integer>>> truckWorkTimeAvgStatisticsHistogram() {
        return null;
    }
    /**
     * 装载车匹配货车数量统计
     * @return
     */
    @RequestMapping("getVehiclePairStatistics")
    public CommonVO<List<TextAndValueVO<String,Integer>>> getVehiclePairStatistics() {
        return null;
    }
    /**
     * 获取货场所有货物种类统计
     * @return
     */
//    @RequestMapping("getAllGoodsTypeStatistic")
//    public CommonVO<List<TextAndValueVO<String,Integer>>> getAllGoodsTypeStatistic() {
//        return null;
//    }
    /**
     * 获取堆场作业量统计
     * @return
     */
    @RequestMapping("getVehicleWorkAreaStatistics")
    public CommonVO<List<TextAndValueVO<String,Float>>> getCurrentTruckLoadingStatistics() {
        return null;
    }
}
